/**
 * File    : RegistrationInfo.java
 * Created : 2008-10-17
 * By      : LuHuiguo
 */
package com.luhuiguo.sso.web.model;

import java.util.Date;

import javax.persistence.Temporal;
import javax.persistence.TemporalType;

import org.apache.tapestry5.beaneditor.DataType;
import org.apache.tapestry5.beaneditor.Validate;

/**
 * @author LuHuiguo
 * @version $Id: RegistrationInfo.java 20 2008-10-19 15:43:48Z LuHuiguo $
 * 
 */
public class RegistrationInfo {

	@Validate("required,regexp=^[A-Za-z0-9_-]+$")
	private String username;

	@Validate("required")
	@DataType("password")
	private String password;

	@DataType("password")
	private String confirmPassword;

	@Validate("required,email")
	private String email;
	
	private String nickname;

	private String fullname;

	@Temporal(TemporalType.DATE)
	private Date bod;

	private String gender;

	private String postcode;

	private String country;

	private String language;

	private String timezone;	
	

	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public String getConfirmPassword() {
		return confirmPassword;
	}

	public void setConfirmPassword(String confirmPassword) {
		this.confirmPassword = confirmPassword;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public String getNickname() {
		return nickname;
	}

	public void setNickname(String nickname) {
		this.nickname = nickname;
	}

	public String getFullname() {
		return fullname;
	}

	public void setFullname(String fullname) {
		this.fullname = fullname;
	}

	public Date getBod() {
		return bod;
	}

	public void setBod(Date bod) {
		this.bod = bod;
	}

	public String getGender() {
		return gender;
	}

	public void setGender(String gender) {
		this.gender = gender;
	}

	public String getPostcode() {
		return postcode;
	}

	public void setPostcode(String postcode) {
		this.postcode = postcode;
	}

	public String getCountry() {
		return country;
	}

	public void setCountry(String country) {
		this.country = country;
	}

	public String getLanguage() {
		return language;
	}

	public void setLanguage(String language) {
		this.language = language;
	}

	public String getTimezone() {
		return timezone;
	}

	public void setTimezone(String timezone) {
		this.timezone = timezone;
	}
	
	

}
